package com.lihaogn.sell.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @FileName: OrderDetail
 * @Description:
 *
 * CREATE TABLE `order_item` (
 *     `order_item_id` VARCHAR(40) NOT NULL,
 *     `order_item_count` INT(11) NOT NULL,
 *     `order_item_cost` decimal(5,2) NOT NULL,
 *     `order_item_score` tinyint NOT NULL DEFAULT 1, -- 评分：0-不喜欢；1-默认；2-喜欢
 *     `order_item_create_time` datetime NOT NULL DEFAULT now(),
 *     `order_item_modified_time` timestamp,
 *     `food_id` VARCHAR(40) NOT NULL,
 *     `order_id` VARCHAR(40) NOT NULL, -- 关联订单
 *     PRIMARY KEY (`order_item_id`),
 *     CONSTRAINT `order_item_fk` FOREIGN KEY (`order_id`) REFERENCES `order_master` (`order_id`)
 * ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 *
 * @Author: lihao
 * @Date: 2019-06-24 15:15
 * @Version: 1.0
 */
@Data
public class OrderDetail {

    private String orderItemId;
    private Integer orderItemCount;
    private Double orderItemCost;
    private Integer orderItemScore;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date orderItemCreateTime;
    private String foodId;
    private String orderId;
}
